package com.zhou.dao;

import com.zhou.entity.Books;

import java.util.List;

/**
 * @Author: zhoubo
 * @Date: 2022/3/11 13:33
 * @Version 1.0
 */
// 实体类Books
public interface BooksMapper {
    /**
     *功能描述:
     *   查询所有书籍
     * @return List
     * @author zhoubo
     * @date 2022/3/11
    */

    List<Books> queryAllBooks();

    //增加一个Book
    int addBook(Books book);

    //根据id删除一个Book
    int deleteBookById(int id);

    //更新Book
    int updateBook(Books books);

    //根据id查询,返回一个Book
    Books queryBookById(int id);
}
